<?php
class IOSS_Game{
	/**游戏类型：H5*/
	const GAME_TYPE_H5 = 1;
	/**游戏类型：flash*/
	const GAME_TYPE_FLASH = 2;
	
	/**游戏平台：AG*/
	const GAME_PLATFORM_AG = 1;
	/**游戏平台：9G*/
	const GAME_PLATFORM_9G = 2;
	/**游戏平台：U8*/
	const GAME_PLATFORM_U8 = 3;
	
	public static $gameTypes = Array(
		self::GAME_TYPE_H5 => 'H5游戏',
		self::GAME_TYPE_FLASH => 'FLASH游戏'
	); 
	public static $gamePlatforms = Array(
		self::GAME_PLATFORM_AG => 'AG游戏平台',
		self::GAME_PLATFORM_9G => '9G游戏平台',
		self::GAME_PLATFORM_U8 => 'U8游戏平台'
	); 
	
	/**
	 * 返回游戏类型
	 * Enter description here ...
	 * @param unknown_type $type
	 */
	public static function getGameType($type=''){
		if($type === ''){
			return self::$gameTypes;
		}
		return element($type, self::$gameTypes, '');
	}
	public static function getGamePlatform($platform=''){
		if($platform === ''){
			return self::$gamePlatforms;
		}
		return element($platform, self::$gamePlatforms, '');
	}
}